home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / yamp2.zip / TO_LIB.MAK < prev    next >
Makefile  |  1992-01-11  |  1KB  |  64 lines

  1.  
  2. #
  3. # Make file for BCC. Make sure to correct the definitions for
  4. # your machine.
  5. #
  6. # Note testreg requires the proper BGI file in the current directory.
  7. #
  8. # This makefile constructs virtlib.lib using the
  9. # large memory model, debug info off, no fast floating point,
  10. # and all other defaults, ie emulation, and standard
  11. # optimizations. 
  12.  
  13. CURDIR = C:\MATH\MATPP
  14. INCDIR = C:\TC\INCLUDE
  15.  
  16. .PATH.obj = $(CURDIR)
  17.  
  18. #        *Translator Definitions*
  19. CC = bcc -c +TO_LIB.CFG
  20. TLINK = tlink
  21.  
  22. #        *List Macros*
  23. EXES = virtop.obj virt.obj virtgraf.obj
  24. CCS  = virt.h virt.cpp virtop.cpp virtgraf.cpp
  25.  
  26. #               *Implicit Rules*
  27. .cpp.obj:
  28.   $(CC) -c {$< }
  29.  
  30.  
  31.  
  32. #        *Explicit Rules*
  33. #        all must be the first explicit rule
  34.  
  35. all: to_lib.cfg virtlib.lib to_lib.mak $(CCS) $(EXES) 
  36.      del to_lib.cfg
  37.  
  38. virtop.obj: virtop.cpp
  39.  
  40. virt.obj: virt.cpp
  41.  
  42. virtgraf.obj: virtgraf.cpp
  43.  
  44. virtlib.lib: to_lib.mak $(EXES)
  45.    tlib virtlib.lib /C +-virt +-virtop +-virtgraf, virtlib.lis
  46.  
  47. #        *Compiler Configuration File*
  48. # change -DVIRTGRAF to -DVIRTGRAF;IN_RAM for in ram version
  49. # make sure to build the library with the same defines
  50.  
  51. to_lib.cfg: to_lib.mak 
  52.   copy &&|
  53. -ml
  54. -v-
  55. -vi-
  56. -ff-
  57. -DVIRTGRAF
  58. -n$(CURDIR)
  59. -I$(INCDIR)
  60. | to_lib.cfg
  61.  
  62.  
  63.  
  64.